﻿Imports System.Data
Imports VSModel
Imports Cls_Common
Imports SecurityService
Partial Class FrontEnd_Control_Contents_LeftBar
    Inherits System.Web.UI.UserControl
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            'If Page.RouteData.Values("Id") <> "" Then
            '    hidContentId.Value = Page.RouteData.Values("Id")
            '    If hidContentId.Value = "" Then
            '        hidContentId.Value = 0
            '    End If
            'End If
            'BindMenu()
        End If
    End Sub
    'Protected Sub BindMenu()
    '    Using data As New VSEntities
    '        'lay Content theo Id
    '        Dim d = (From p In data.Contents Where p.Id = hidContentId.Value Select p).FirstOrDefault
    '        'neu la khong phai video IsYoutube = true se hien thi video
    '        Dim _video = (From p In data.Contents Where (p.Id = hidContentId.Value And p.IsYoutube <> True) Select p).FirstOrDefault
    '        If Not _video Is Nothing Then
    '            imgZoomDetail.ImageUrl = d.Image
    '        End If

    '    End Using
    'End Sub
End Class
